package org.gp953.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.gp953.basic.domain.BaseDomain;

import java.util.Date;

@Data
public class Shop extends BaseDomain {

    private String name;
    private String tel;

    private Date registerTime = new Date();
    // 默认值为0表示待审核，1表示审核通过，2表示资料有问题需要重新提交，3表示该用户注册请求被拒绝
    private Integer state = 0;
    private String address;
    private String logo;
    private Employee admin;
    private String admin_id;

    // 转换时间格式
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getRegisterTime() {
        return registerTime;
    }
}
